#include <optional> // for optional
#include <utility> // for move
-#if HAVE_CONFIG_H
-#include "config.h"
-#endif
#if HAVE_LIBZ
#include <zlib.h> // doesn't really belong here, but is missing elsewhere.
#elif !ZLIB_INHIBITED
#include <cstdio>
#include <cstdlib>
#include <cstring>
-#if HAVE_CONFIG_H
-#include "jeeps/config.h"
-#endif
#if HAVE_LIBUSB_1_0
#ifdef LIBUSB_H_INCLUDE
// Warning: LIBUSB_H_INCLUDE necessarily includes bracket or double quote
*/
-#if HAVE_CONFIG_H
-#include "jeeps/config.h"
-#endif
-
#include "defs.h"
#if !HAVE_LIBUSB_1_0
modified subset of zlib-1.2.11 from zlib.net.
note that zlib 1.2.8 has a seek bug that will bite us.
other changes after zlib 1.2.8 may be required as well.
-1. zconf.h is modified to include our config.h
-2. contrib/minizip/ioapi.c modifies a conditional adding __CYGWIN__
-3. contrib/minizip/ioapi.h modifies a conditional adding __FreeBSD__
+1. contrib/minizip/ioapi.c modifies a conditional adding __CYGWIN__
+2. contrib/minizip/ioapi.h modifies a conditional adding __FreeBSD__
See the corresponding .patch files.
#ifndef ZCONF_H
#define ZCONF_H
-/* Start GPSBabel local */
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-/* end GPSBabel local */
-
/*
* If you *really* need a unique prefix for all types and library functions,
* compile with -DZ_PREFIX. The "standard" zlib should be compiled without it.
+++ /dev/null
---- ../zlib-1.2.8/zconf.h 2013-04-28 16:57:11.000000000 -0600
-+++ zlib/zconf.h 2017-11-11 09:05:50.666012999 -0700
-@@ -8,6 +8,12 @@
- #ifndef ZCONF_H
- #define ZCONF_H
-
-+/* Start GPSBabel local */
-+#ifdef HAVE_CONFIG_H
-+#include "config.h"
-+#endif
-+/* end GPSBabel local */
-+
- /*
- * If you *really* need a unique prefix for all types and library functions,
- * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it.